import { defHttp } from "@/utils/http";

// ERP 部门药品库存API
export const deptInventoryApi = {
	// 获得部门药品库存分页
	deptInventoryList: async (params: any) => {
		return await defHttp.get({ url: `/whs/dept-inventory/page`, params });
	},
	// 新增部门药品库存
	deptInventoryCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/dept-inventory/create`, data });
	},

	// 修改部门药品库存
	deptInventoryUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/dept-inventory/update`, data });
	},

	// 删除部门药品库存
	deptInventoryDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/dept-inventory/delete?id=` + id });
	}
};
